package com.ruoyi.fileDetail.service.impl;

import java.util.List;

import com.ruoyi.fileDetail.domain.HouseFileDetail;
import com.ruoyi.fileDetail.mapper.HouseFileDetailMapper;
import com.ruoyi.fileDetail.service.IHouseFileDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 档案列表Service业务层处理
 * 
 * @author lijie
 * @date 2025-03-21
 */
@Service
public class HouseFileDetailServiceImpl implements IHouseFileDetailService
{
    @Autowired
    private HouseFileDetailMapper houseFileDetailMapper;

    /**
     * 查询档案列表
     * 
     * @param fileDetailId 档案列表主键
     * @return 档案列表
     */
    @Override
    public HouseFileDetail selectHouseFileDetailByFileDetailId(Long fileDetailId)
    {
        return houseFileDetailMapper.selectHouseFileDetailByFileDetailId(fileDetailId);
    }

    /**
     * 查询档案列表列表
     * 
     * @param houseFileDetail 档案列表
     * @return 档案列表
     */
    @Override
    public List<HouseFileDetail> selectHouseFileDetailList(HouseFileDetail houseFileDetail)
    {
        return houseFileDetailMapper.selectHouseFileDetailList(houseFileDetail);
    }

    /**
     * 新增档案列表
     * 
     * @param houseFileDetail 档案列表
     * @return 结果
     */
    @Override
    public int insertHouseFileDetail(HouseFileDetail houseFileDetail)
    {
        return houseFileDetailMapper.insertHouseFileDetail(houseFileDetail);
    }

    /**
     * 修改档案列表
     * 
     * @param houseFileDetail 档案列表
     * @return 结果
     */
    @Override
    public int updateHouseFileDetail(HouseFileDetail houseFileDetail)
    {
        return houseFileDetailMapper.updateHouseFileDetail(houseFileDetail);
    }

    /**
     * 批量删除档案列表
     * 
     * @param fileDetailIds 需要删除的档案列表主键
     * @return 结果
     */
    @Override
    public int deleteHouseFileDetailByFileDetailIds(Long[] fileDetailIds)
    {
        return houseFileDetailMapper.deleteHouseFileDetailByFileDetailIds(fileDetailIds);
    }

    /**
     * 删除档案列表信息
     * 
     * @param fileDetailId 档案列表主键
     * @return 结果
     */
    @Override
    public int deleteHouseFileDetailByFileDetailId(Long fileDetailId)
    {
        return houseFileDetailMapper.deleteHouseFileDetailByFileDetailId(fileDetailId);
    }
}
